package com.pureut.storage.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.storage.domain.PickingSale;
import com.pureut.storage.dto.*;
import com.pureut.storage.export.PickingSaleExport;
import com.pureut.storage.vo.OrderReviewVo;
import com.pureut.storage.vo.PickingRestDbVo;
import com.pureut.storage.vo.PickingSaleVo;
import com.pureut.storage.vo.UpdateDocVo;

import java.util.List;

/**
 * @author: CM
 * @date: 2022/12/27    14:45
 */
public interface PickingSaleService extends IService<PickingSale> {

    /**
     * 新增销售发货单
     * @param pickingSaleVo
     * @return
     */
    boolean addSale(PickingSaleVo pickingSaleVo) throws Exception;

    /**
     * 修改销售发货单
     * @param pickingSaleVo
     * @return
     */
    boolean updateSale(PickingSaleVo pickingSaleVo);

    /**
     * 关结销售发货单
     * @param pickingSaleVo
     * @return
     */
    boolean closeSale(PickingSaleVo pickingSaleVo);

    /**
     * 删除销售发货单
     * @param ids
     * @return
     */
    boolean deleteSale(String ids);

    /**
     * 提交审核
     * @param ids
     * @return
     */
    boolean submitSale(String ids);

    /**
     * 查看单据
     * @param id
     * @return
     */
    PickingSaleDto view(Long id);

    /**
     * 销售发货列表
     * @param pickingSaleVo
     * @return
     */
    List<PickingSaleDto> getList(PickingSaleVo pickingSaleVo);

    /**
     * 销售发货列表
     * @param pickingSaleVo
     * @return
     */
    List<GetPdaDto> getListPda(PickingSaleVo pickingSaleVo);

    /**
     * 导出
     * @param pickingSaleVo
     * @return
     */
    List<PickingSaleExport> getInfoExport(PickingSaleVo pickingSaleVo);

    /**
     * 销售发货出库
     * @param pickingRestDbVo
     * @return
     */
    PickingRestDbDto out(PickingRestDbVo pickingRestDbVo) throws Exception;

    /**
     * 拣货完成
     * @param id
     * @return
     */
    boolean finishProduction(Long id) throws Exception;

    /**
     * 拣货撤销
     * @param id
     * @return
     */
    boolean repealProduction(Long id);

    /**
     * 交接
     * @param pickingRestDbVo
     * @return
     */
    PickingRestHandoverDto overProduction(PickingRestDbVo pickingRestDbVo);

    /**
     * 审核单据
     * @param orderReviewVo
     * @return
     */
    boolean saleReview(OrderReviewVo orderReviewVo);

    /**
     * 品质检验单修改仓库单据状态
     * @param updateDocVo
     * @return
     */
    boolean saleUpdateStatus(UpdateDocVo updateDocVo);

    /**
     * 拣货方案
     * @param id
     * @return
     */
    SchemeDto point(Long id);

    /**
     * 查询销售发货列表(feign调用) 客诉管理查询使用
     */
    List<PickingSaleDto> getByCustomerComplaintsList(PickingSaleVo pickingSaleVo);
}
